package gizwits.centerair.way;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Test2 {
	private float temp;

	public static void main(String[] args) {
		Test2 t = new Test2();

		t.setTemp(1);
		System.out.println(t.getTemp());
		//System.out.println(t.getT());
		System.out.println("20.5".split("\\."));
		
		SimpleDateFormat sdf = new SimpleDateFormat("mm");
		SimpleDateFormat sdfs = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			System.out.println(Integer.valueOf(sdf.format(sdfs.parse("2017-06-30 16:02:22"))));
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public float getTemp() {
		return temp;
	}

	public void setTemp(float temp) {
		this.temp = temp;
	}

	public int getT(){
		return Integer.valueOf(18+".5");
	}
}
